<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/2/18
 * Time: 18:55
 */
Route::group(['prefix' => 'admin', 'namespace' => 'Admin'], function (){
    Route::get('/login', 'EntryController@loginForm');

    Route::post('/login', 'EntryController@login');

    Route::get('/index', 'EntryController@index');

    //退出
    Route::get('/logout', 'EntryController@logout');

    //修改密码
    Route::get('/changePassword', 'MyController@passwordForm');
    Route::post('/changePassword', 'MyController@changePassword');
    //标签管理
    Route::resource('tag', 'TagController');
    //课程管理
    Route::resource('lesson', 'LessonController');

});